"use strict";

module.exports = {
  BlogBody: {
    title: { type: "string", required: true, example: "文章标题" },
    content: { type: "string", required: true, example: "文章内容" },
    desc: { type: "string", required: true, example: "文章描述" },
  },

  BlogIndexQuery: {
    pageNum: { type: "number", required: true, example: 1 },
    pageSize: { type: "number", required: true, example: 5 },
  },

  CategoryBody: {
    title: { type: "string", required: true, example: "分类标题" },
    desc: { type: "string", required: true, example: "分类描述" },
  },

  TagBody: {
    tagId: { type: "number", required: false, example: "标签id" },
    name: { type: "string", required: true, example: "标签名称" },
  },

  SetTagBody: {
    blogId: { type: "number", required: true, example: 0 },
    tags: {
      type: "array",
      itemType: "number",
      required: true,
      example: [],
    },
  },

  LoginBody: {
    username: { type: "string", required: true },
    password: { type: "string", required: true },
  },
};
